#pragma once
#include "Sort.h"

class Ruler
{
protected:
	CBrush   brush;         //cell 

public:
    Ruler();
    virtual ~Ruler();
	CPoint GetO();

	void SetBounding(CRect bounding){m_bounding = bounding;}
    void DrawRuler(CDC *pDC);

	void ShowData(CDC *pDC);

protected:
	CRect GetItemRect(int N, int Y);
    void DrawColumn(CDC *pDC, int N, int H);
    void DrawItem(CDC *pDC, int N, int Y);

protected:
	CRect  m_bounding; 
};
